package demo6;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86183
 */
public class Derived extends Base{
    public int a = 10;
    public int c = 3;
    public Derived(){
        super();
        System.out.println("子类Derived()的构造方法");
    }
    public void A(){
        System.out.println("Derived的方法A");
    }
    public void C(){
        System.out.println("Derived的方法C");
    }
   /* //静态成员方法
    public static void func3(){
        super.A();
    }*/
    public void func2(){
        super.A();
        this.A();
        this.B();
        super.B();
        this.C();
    }
    public void func(){
        System.out.println(super.a);
        System.out.println(a);
        System.out.println(b);
        System.out.println(c);
    }

}
